package com.ruoyi.project.system.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.page.TableDataInfo;
import com.ruoyi.project.system.domain.SysCheckItem;
import com.ruoyi.project.system.service.ISysCheckItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/sys/checkitem")
public class SysCheckItemController extends BaseController {
    @Autowired
    private ISysCheckItemService iSysCheckItemService;
    @GetMapping("/selectAllOrByConditions")
    public TableDataInfo selectAllOrByConditions(String keyword){
        startPage();
        List<SysCheckItem> sysCheckItems = iSysCheckItemService.selectAllOrByConditions(keyword);
        return getDataTable(sysCheckItems);
    }
}
